import request from '../../utils/request'

// 类似这样写api
export const getlist = () => {
  return request({
    method: 'get',
    url: '/categories/'
  })
}
export const getGoods = ({ str = '', page, limit }) => {
  return request({
    method: 'get',
    url: `/goods/search?query=${str}&pagenum=${page}&pagesize=${limit}`
  })
}

